import request from "@/utils/request";
//虚拟信用卡列表
export function getVirtualCreditCard(params) {
  return request({
    url: "/virtualCreditCard",
    method: "get",
    params,
  });
}
//新增虚拟信用卡
export function addVirtualCreditCard(data) {
  return request({
    url: "/virtualCreditCard",
    method: "post",
    data,
  });
}
//编辑虚拟信用卡
export function editVirtualCreditCard(data) {
  return request({
    url: `/virtualCreditCard/${data.id}`,
    method: "put",
    data,
  });
}
//删除虚拟信用卡
export function deleteVirtualCreditCard(data) {
  return request({
    url: `/virtualCreditCard/${data.id}`,
    method: "delete",
    data,
  });
}
//批量修改虚拟信用卡状态
export function stateVirtualCreditCard(data) {
  return request({
    url: `/virtualCreditCard/batch/state`,
    method: "patch",
    data,
  });
}
//批量修改虚拟信用卡负责人
export function attributionVirtualCreditCard(data) {
  return request({
    url: `/virtualCreditCard/batch/attribution`,
    method: "patch",
    data,
  });
}
